package cn.com.header.web.service.basic;

import cn.com.header.core.util.Page;
import cn.com.header.web.model.basic.Subject;

import java.util.List;
import java.util.Map;

/**
 * 学科Service接口
 * Created by lhd on 2017/7/11.
 */
public interface SubjectService {
    Page query(Page page);

    void saveSubject(Subject subject);

    void delete(Long id);

    Subject get(Long id);

    Boolean isNumberUnique(String number,Long id);


    public List<Subject> findAllByParams(Map<String, Object> map) throws Exception;

    public Subject findByParams(Map<String, Object> map) throws Exception;

    /**
     * 批量删除
     * @param ids
     */
    void deleteAll(Long[] ids);

}
